package com.dcrzl.shcz.common.entity.info;

import com.baomidou.mybatisplus.annotation.*;
import com.dcrzl.shcz.common.utils.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;


/**
 * @author dcrzl
 * @email 1728795786@qq.com
 * @date 2025-01-01 22:49:28
 */
@Data
@TableName("t_content")
@Accessors(chain = true)
public class Content extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    /**
     *
     */
    @TableField(value = "title")
    private String title;
    /**
     * 作者
     */
    @TableField(value = "author")
    private String author;
    /**
     * 发布时间
     */
    @TableField(value = "release_time")
    private Date releaseTime;
    /**
     * 信息来源
     */
    @TableField(value = "info_form")
    private String infoForm;
    /**
     * 浏览次数
     */
    @TableField(value = "can_num")
    private Long canNum;
    /**
     * 内容
     */
    @TableField(value = "content")
    private String content;
    /**
     * URL跳转
     */
    @TableField(value = "url")
    private String url;
    /**
     * 文章类型0为富文本1为网址2为图片期刊
     */
    @TableField(value = "type")
    private Integer type;
    /**
     * 封面路径
     */
    @TableField(value = "cover_path")
    private String coverPath;
    /**
     */
    @TableField(value = "order_num")
    private Integer orderNum;
    /**
     * 发布状态
     */
    @TableField(value = "release_status")
    private Integer releaseStatus;
    /**
     * 行政单位类型
     */
    @TableField(value = "gov_type")
    private Long govType;

    @TableField(value = "file_path")
    private String filePath;

    /**
     *
     */
    @TableField(value = "status", fill = FieldFill.INSERT)
    private Integer status;
    /**
     *
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
    /**
     *
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    @TableField(exist = false)
    private Gov gov;

}
